
package com.engine4cloud.tdf.education.dto.update;

import com.engine4cloud.tdf.education.dto.EduActivitiesFileDTO;
import com.engine4cloud.tdf.education.dto.create.PublicWelfareAttendCreateDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 公益活动
 *
 * @author wenjie
 * @date 2024-08-13 11:16:58
 */
@Data
@Schema(description = "公益活动")
public class EduPublicWelfareActivitiesUpdateDTO implements Serializable {

    /**
     * 主键
     */
    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    /**
     * 活动开始时间
     */
    @Schema(description = "活动开始时间", example = "2024-07-01 00:00:00")
    @NotNull(message = "活动开始时间不能为空")
    private LocalDateTime hdkssj;

    /**
     * 活动结束时间
     */
    @Schema(description = "活动结束时间", example = "2024-08-01 00:00:00")
    @NotNull(message = "活动结束时间不能为空")
    private LocalDateTime hdjssj;

    /**
     * 活动时长
     */
    @Schema(description = "活动时长", example = "2.5")
    @NotNull(message = "活动时长为空")
    private BigDecimal hdsc;

    /**
     * 活动地点
     */
    @Schema(description = "活动地点", example = "**村**号")
    @NotBlank(message = "活动地点不能为空")
    private String hddd;

    /**
     * 活动内容
     */
    @Schema(description = "活动内容")
    @NotBlank(message = "活动内容不能为空")
    private String hdnr;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 相关文件
     */
    @Schema(description = "相关文件")
    private List<EduActivitiesFileDTO> fileList;

    /**
     * 参加人员列表
     */
    @Schema(description = "参加人员列表")
    @NotEmpty(message = "参加人员列表不能为空")
    private List<PublicWelfareAttendCreateDTO> attendList;
}